package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.OutsourcingPackagedGoods;
import com.ecoolex.ying.space.entity.OutsourcingPackagedGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface OutsourcingPackagedGoodsMapper {
    long countByExample(OutsourcingPackagedGoodsExample example);

    int deleteByExample(OutsourcingPackagedGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OutsourcingPackagedGoods record);

    int insertSelective(@Param("record") OutsourcingPackagedGoods record, @Param("selective") OutsourcingPackagedGoods.Column ... selective);

    OutsourcingPackagedGoods selectOneByExample(OutsourcingPackagedGoodsExample example);

    List<OutsourcingPackagedGoods> selectByExample(OutsourcingPackagedGoodsExample example);

    OutsourcingPackagedGoods selectByPrimaryKey(Integer id);

    OutsourcingPackagedGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") OutsourcingPackagedGoods record, @Param("example") OutsourcingPackagedGoodsExample example, @Param("selective") OutsourcingPackagedGoods.Column ... selective);

    int updateByExample(@Param("record") OutsourcingPackagedGoods record, @Param("example") OutsourcingPackagedGoodsExample example);

    int updateByPrimaryKeySelective(@Param("record") OutsourcingPackagedGoods record, @Param("selective") OutsourcingPackagedGoods.Column ... selective);

    int updateByPrimaryKey(OutsourcingPackagedGoods record);

    int batchInsert(@Param("list") List<OutsourcingPackagedGoods> list);

    int batchInsertSelective(@Param("list") List<OutsourcingPackagedGoods> list, @Param("selective") OutsourcingPackagedGoods.Column ... selective);

    int logicalDeleteByExample(@Param("example") OutsourcingPackagedGoodsExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}